import {useStore} from "@/stores";

export const buildHeaders = () => {
    const store = useStore();
    const cred = store.getCredential();
    return {
        access_token: cred.accessToken,
        client_id: import.meta.env.VITE_APP_CLIENT_ID,
        client_secret: import.meta.env.VITE_APP_CLIENT_SECRET,
        terminal_code: 'WEB',
        platform: import.meta.env.VITE_APP_PLATFORM
    }
}
